.class public final Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;
.super Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;
.source "BurstlyVideoAdaptor.java"


# static fields
.field static final FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo; = null

.field static final NETWORK_NAME:Ljava/lang/String; = "burstlyVideo"

.field static sCurrentInstance:Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;


# instance fields
.field mCacheUrl:Ljava/lang/String;

.field private mPlayFromCache:Z

.field private mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

.field mVideoUrl:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 55
    new-instance v0, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    const-string v1, "burstlyVideo"

    const/4 v2, 0x0

    invoke-direct {v0, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;-><init>(Ljava/lang/String;Z)V

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 89
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 90
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " VideoAdaptor"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mTag:Ljava/lang/String;

    .line 91
    invoke-static {p1}, Lcom/burstly/lib/service/SdCardWatchingService;->startWatching(Landroid/content/Context;)V

    .line 92
    invoke-static {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->initCache(Landroid/content/Context;)V

    .line 93
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->getInstance()Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    .line 94
    sput-object p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->sCurrentInstance:Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;

    .line 95
    return-void
.end method

.method private createParametersObject(Z)Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;
    .locals 11
    .parameter "isPrecached"

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 166
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;

    invoke-direct {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;-><init>()V

    .line 167
    .local v1, params:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;
    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;->getVideoParams()Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    move-result-object v6

    .line 168
    .local v6, videoParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    .line 169
    .local v2, responseData:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    new-instance v9, Ljava/lang/ref/WeakReference;

    invoke-direct {v9, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    invoke-virtual {v6, v9}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->setVideoComponent(Ljava/lang/ref/WeakReference;)V

    .line 170
    invoke-virtual {v6, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->setIsPrepared(Z)V

    .line 174
    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getDestType()Ljava/lang/Integer;

    move-result-object v9

    sget-object v10, Lcom/burstly/lib/network/beans/DestinationType;->DestinationType_custom:Lcom/burstly/lib/network/beans/DestinationType;

    invoke-virtual {v10}, Lcom/burstly/lib/network/beans/DestinationType;->getValue()Ljava/lang/Integer;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/Integer;->equals(Ljava/lang/Object;)Z

    move-result v0

    .line 176
    .local v0, isDestinationTypeCustom:Z
    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getUrl()Ljava/lang/String;

    move-result-object v5

    .line 177
    .local v5, url:Ljava/lang/String;
    if-eqz v5, :cond_3

    const-string v9, "invalid:"

    invoke-virtual {v5, v9}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_3

    move v4, v8

    .line 178
    .local v4, startsWithInvalid:Z
    :goto_0
    if-eqz v0, :cond_0

    if-nez v4, :cond_1

    :cond_0
    move v7, v8

    :cond_1
    invoke-virtual {v6, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->setShowVisitButton(Z)V

    .line 179
    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getSkipButtonActivationTime()Ljava/lang/Integer;

    move-result-object v3

    .line 180
    .local v3, skipButtonActivationTime:Ljava/lang/Integer;
    if-eqz v3, :cond_2

    .line 181
    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v7

    mul-int/lit16 v7, v7, 0x3e8

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v6, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->setShowSkipButtonAfter(Ljava/lang/Integer;)V

    .line 183
    :cond_2
    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getValidCbmArray()[Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->setMiddleVideoCallback([Ljava/lang/String;)V

    .line 184
    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getValidCbeArray()[Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->setEndVideoCallback([Ljava/lang/String;)V

    .line 185
    return-object v1

    .end local v3           #skipButtonActivationTime:Ljava/lang/Integer;
    .end local v4           #startsWithInvalid:Z
    :cond_3
    move v4, v7

    .line 177
    goto :goto_0
.end method

.method private static getIntentWithUrl(Landroid/content/Intent;Ljava/lang/String;)Landroid/content/Intent;
    .locals 2
    .parameter "intent"
    .parameter "url"

    .prologue
    .line 201
    const-string v0, "videoUrl"

    invoke-virtual {p0, v0, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 202
    const-string v0, "imlementationIdKey"

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->IMPLEMENTATION_ID:Ljava/lang/Integer;

    invoke-virtual {p0, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    move-result-object v0

    const/high16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 204
    return-object p0
.end method

.method private play(Z)V
    .locals 2
    .parameter "precached"

    .prologue
    .line 155
    iput-boolean p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mPlayFromCache:Z

    .line 156
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mTag:Ljava/lang/String;

    invoke-direct {p0, v0, v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->showActivity(Landroid/content/Context;Ljava/lang/String;Lcom/burstly/lib/component/activitylauncher/IActivityLauncherSource;)V

    .line 157
    return-void
.end method

.method private showActivity(Landroid/content/Context;Ljava/lang/String;Lcom/burstly/lib/component/activitylauncher/IActivityLauncherSource;)V
    .locals 2
    .parameter "context"
    .parameter "logTag"
    .parameter "launchSource"

    .prologue
    .line 272
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->isStopped()Z

    move-result v0

    if-nez v0, :cond_0

    .line 273
    new-instance v0, Lcom/burstly/lib/component/activitylauncher/ActivtyLauncher;

    invoke-direct {v0, p3, p1}, Lcom/burstly/lib/component/activitylauncher/ActivtyLauncher;-><init>(Lcom/burstly/lib/component/activitylauncher/IActivityLauncherSource;Landroid/content/Context;)V

    const-string v1, "burstlyVideo"

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/activitylauncher/ActivtyLauncher;->setNetworkName(Ljava/lang/String;)Lcom/burstly/lib/component/activitylauncher/ActivtyLauncher;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/burstly/lib/component/activitylauncher/ActivtyLauncher;->setTag(Ljava/lang/String;)Lcom/burstly/lib/component/activitylauncher/ActivtyLauncher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/component/activitylauncher/ActivtyLauncher;->launchActivity()V

    .line 275
    :cond_0
    return-void
.end method

.method public static showActivity(Landroid/content/Context;Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;Ljava/lang/String;)Z
    .locals 5
    .parameter "context"
    .parameter "url"
    .parameter "videoParams"
    .parameter "logTag"

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 245
    const/4 v3, 0x1

    :try_start_0
    sput-boolean v3, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->sIsShowingVideoNow:Z

    .line 246
    invoke-static {p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenConfiguration;->setFullscreenParams(Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;)V

    .line 247
    new-instance v3, Landroid/content/Intent;

    const-class v4, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;

    invoke-direct {v3, p0, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-static {v3, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getIntentWithUrl(Landroid/content/Intent;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {p0, v3}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 255
    :goto_0
    return v1

    .line 249
    :catch_0
    move-exception v0

    .line 250
    .local v0, exception:Landroid/content/ActivityNotFoundException;
    invoke-static {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenConfiguration;->removeFullscreenParams(Ljava/lang/String;)V

    .line 251
    sput-boolean v2, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->sIsShowingVideoNow:Z

    .line 252
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "Cannot load Burstly video player. Did you add com.burstly.lib.component.networkcomponent.burstly.BurstlyFullscreenActivity activity to your manifest file?"

    new-array v4, v2, [Ljava/lang/Object;

    invoke-virtual {v1, p3, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move v1, v2

    .line 255
    goto :goto_0
.end method


# virtual methods
.method public beforeLaunch()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 215
    sput-boolean v3, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->sIsShowingVideoNow:Z

    .line 216
    iget-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mPlayFromCache:Z

    invoke-direct {p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->createParametersObject(Z)Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;

    move-result-object v1

    .line 217
    .local v1, videoParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    invoke-static {v2, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenConfiguration;->setFullscreenParams(Ljava/lang/String;Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;)V

    .line 220
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    .line 221
    .local v0, adaptorListener:Lcom/burstly/lib/component/IBurstlyAdaptorListener;
    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->isStopped()Z

    move-result v2

    if-nez v2, :cond_0

    .line 222
    const-string v2, "burstlyVideo"

    invoke-interface {v0, v2, v3}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 223
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v0, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->shownFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 225
    :cond_0
    return-void
.end method

.method protected checkParameters(Ljava/util/Map;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .line 99
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    invoke-super {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->checkParameters(Ljava/util/Map;)V

    .line 100
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    .line 101
    .local v0, responseData:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getVideoUrl()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    .line 102
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mCacheUrl:Ljava/lang/String;

    .line 103
    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getCachingKey()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 104
    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getCachingKey()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mCacheUrl:Ljava/lang/String;

    .line 106
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_2

    .line 107
    :cond_1
    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v2, "video url can not be null"

    invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 109
    :cond_2
    return-void
.end method

.method public destroy()V
    .locals 1

    .prologue
    .line 260
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->destroy()V

    .line 261
    const/4 v0, 0x0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->sCurrentInstance:Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;

    .line 262
    return-void
.end method

.method protected doGetNewAd()Landroid/view/View;
    .locals 5

    .prologue
    .line 129
    const/4 v1, 0x0

    .line 130
    .local v1, fromCache:Z
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mCacheUrl:Ljava/lang/String;

    invoke-virtual {v2, v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->hasFileInCache(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 131
    .local v0, cachedUrl:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 132
    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    .line 133
    const/4 v1, 0x1

    .line 135
    :cond_0
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->play(Z)V

    .line 136
    const/4 v2, 0x0

    return-object v2
.end method

.method public getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    .locals 1

    .prologue
    .line 119
    sget-object v0, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->INTERSTITIAL_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    return-object v0
.end method

.method public getIntent()Landroid/content/Intent;
    .locals 2

    .prologue
    .line 190
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->getIntent()Landroid/content/Intent;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getIntentWithUrl(Landroid/content/Intent;Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v0

    return-object v0
.end method

.method public getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 124
    const-string v0, "burstlyVideo"

    return-object v0
.end method

.method public isAllowedToLaunch()Z
    .locals 1

    .prologue
    .line 210
    sget-boolean v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->sIsShowingVideoNow:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onActivityNotFound(Ljava/lang/String;)V
    .locals 1
    .parameter "className"

    .prologue
    .line 229
    const/4 v0, 0x0

    sput-boolean v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->sIsShowingVideoNow:Z

    .line 230
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenConfiguration;->removeFullscreenParams(Ljava/lang/String;)V

    .line 231
    return-void
.end method

.method public precacheAd()Landroid/view/View;
    .locals 1

    .prologue
    .line 114
    const/4 v0, 0x0

    return-object v0
.end method

.method public precacheInterstitialAd()V
    .locals 3

    .prologue
    .line 141
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    const-string v1, "burstlyVideo"

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 142
    return-void
.end method

.method public showPrecachedInterstitialAd()V
    .locals 1

    .prologue
    .line 146
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->play(Z)V

    .line 147
    return-void
.end method

.method public supports(Ljava/lang/String;)Z
    .locals 4
    .parameter "action"

    .prologue
    .line 279
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mCacheUrl:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->hasFileInCache(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 280
    .local v0, cachedUrl:Ljava/lang/String;
    if-nez v0, :cond_0

    .line 281
    sget-object v1, Lcom/burstly/lib/component/IBurstlyAdaptor$AdaptorAction;->PRECACHE_INTERSTITIAL:Lcom/burstly/lib/component/IBurstlyAdaptor$AdaptorAction;

    invoke-virtual {v1}, Lcom/burstly/lib/component/IBurstlyAdaptor$AdaptorAction;->getCode()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 282
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoCache:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mCacheUrl:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->cacheVideo(Ljava/lang/String;Ljava/lang/String;)V

    .line 283
    const/4 v1, 0x0

    .line 288
    :goto_0
    return v1

    .line 286
    :cond_0
    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->mVideoUrl:Ljava/lang/String;

    .line 288
    :cond_1
    const/4 v1, 0x1

    goto :goto_0
.end method
